package coml.jiyun.hp.reviewtopic.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import coml.jiyun.hp.reviewtopic.R;

public class WebViewActivity extends AppCompatActivity {

    private WebView mWebWebview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_view);
        initView();
    }

    private void initView() {
        mWebWebview = (WebView) findViewById(R.id.web_webview);

        String link = getIntent().getStringExtra("link");
        mWebWebview.loadUrl(link);
        mWebWebview.setWebViewClient(new WebViewClient());
    }
}
